export default {
    buyVip({commit} , e){
        return new Promise((resolve,reject) => {
            setTimeout(()=>{
                commit("setMemberInfo",{
                    userStatus : e.userStatus,
                    vipLevel : e.vipLevel
                })

                resolve("购买成功")
            },1000)
        })
    },
    updateStatus({commit}){
        return new Promise((resolve,reject)=>{
            setTimeout(()=>{
                commit("setMemberInfo",{
                    userStatus : 1,
                    vipLevel : 0
                })

                resolve("分享成功！恭喜您获得一个月vip！")
            },500)
        })
    }
}